import random

def generate_test_data(num_tests=10, max_len=10, max_val=9):
    test_cases = []
    for _ in range(num_tests):
        # 随机生成两个数组的长度
        len1 = random.randint(1, max_len)
        len2 = random.randint(1, max_len)
        
        # 随机生成两个数组
        nums1 = [random.randint(0, max_val) for _ in range(len1)]
        nums2 = [random.randint(0, max_val) for _ in range(len2)]
        
        # 随机生成k的值，确保k不大于两个数组的总长度
        k = random.randint(1, len1 + len2)
        
        test_cases.append((nums1, nums2, k))
    
    return test_cases

if __name__ == "__main__":
    test_data = generate_test_data()
    for i, (nums1, nums2, k) in enumerate(test_data):
        print(f"Test case {i+1}:")
        print(f"nums1 = {nums1}")
        print(f"nums2 = {nums2}")
        print(f"k = {k}")
        print()
